package com.concurrent.chenjun.test;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class CachedThreadPool
{
	public static void main(String[] args)
	{
		ExecutorService exec = Executors.newCachedThreadPool();
		for(int i = 0; i < 100; i++)
		{
			exec.execute(new ExecuteTask());
		}
		exec.shutdown();
	}
}
